package com.dfl.ggbond;

import android.content.Intent;
import android.os.Bundle;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import com.dfl.ggbond.databinding.ActivityMainBinding;
import com.dfl.ggbond.pic.PictureActivity;
// 统一 Adapter（MediaAdapter）

public class MainActivity extends AppCompatActivity {

    private ActivityMainBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        Toolbar toolbar = findViewById(R.id.main_toolbar);
        setSupportActionBar(toolbar);

        binding.cardviewPicture.setOnClickListener(view -> {
            startActivity(new Intent(this, PictureActivity.class));
        });

        binding.cardviewPicture.setOnClickListener(view -> {
            startActivity(new Intent(this, PictureActivity.class));
        });
    }
}